package com.acwer.framework.data;

public class TreeNode<T> {
	private T node;
	private TreeNode<T> parentNode;
	
	public TreeNode<T> getParentNode() {
		return parentNode;
	}
	public void setParentNode(TreeNode<T> parentNode) {
		this.parentNode = parentNode;
	}
	private TreeList<TreeNode<T>> children;
	public TreeNode(){}
	public TreeNode(T node,TreeList<TreeNode<T>> children){
		this.node=node;
		this.children=children;
	}
	public T getNode() {
		return node;
	}
	public void setNode(T node) {
		this.node = node;
	}
	public TreeList<TreeNode<T>> getChildren() {
		return children;
	}
	public void setChildren(TreeList<TreeNode<T>> children) {
		this.children = children;
	}
	
}